<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function pf(n){
            return n*n;
        }
        function jc(n){
            var rel = 1;
            for(var i=1; i<=n ; i++){
                rel = rel*i;
            }
            return rel;
        }
        function sum(a,b){
            var a1 = jc(pf(a));
            var b1 = jc(pf(b));
            return a1+b1;
        }
        var k = sum(4,4);
        document.write(k);
    </script>
</body>
</html>